<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
   <div class="itemtitle">
        <h3>{$Think.lang.ad.manage_ad}</h3>
        <ul class="tab1">
            <li><a href="__URL__/adList"><span>{$Think.lang.ad.all_ad}</span></a></li>
            <li><a href="__URL__/addAD"><span>{$Think.lang.ad.add_ad}</span></a></li>
            <li><a href="__URL__/locationList"><span>{$Think.lang.ad.all_location}</span></a></li>
            <li class="current"><notempty name="rs"><a href="__URL__/editLocation/location_id/{$rs.location_id}"><span>{$Think.lang.ad.edit_location}</span></a><else/><a href="__URL__/addLocation"><span>{$Think.lang.ad.add_location}</span></a></notempty></li>
        </ul>
    </div>
    <p class="tips"></p>

    <form id="cpform" name="cpform" method="post" action="__ACTION__">
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="location_id" value="{$rs.location_id}" />
    <table class="tb tb2">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ad.loc_identifier}:</td></tr>
        <tr>
            <td class="vtop rowform"><input type="text" class="txt" name="identifier" value="{$rs.identifier}" <eq name="rs.type" value="system">readonly="true"</eq>/></td>
            <td class="vtop tips2">{$Think.lang.ad.loc_identifier_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ad.loc_tpl}:</td></tr>
        <tr>
            <td class="vtop rowform"><textarea name="template" cols="50" rows="3" class="tarea" onkeyup="textareasize(this)"><empty name="rs.template">{$template}<else/>{$rs.template}</empty></textarea></td>
            <td class="vtop tips2">{$Think.lang.ad.loc_tpl_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ad.loc_desc}:</td></tr>
        <tr>
            <td class="vtop rowform"><textarea name="description" cols="50" rows="3" class="tarea" onkeyup="textareasize(this)">{$rs.description}</textarea></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input id="save" class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
